package net.zrnecko.km.client;

import java.util.List;

import net.zrnecko.km.dto.PlayerDTO;
import net.zrnecko.km.dto.TournamentDTO;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;


@RemoteServiceRelativePath("remote")
public interface PersistenceService extends RemoteService {

	public abstract void persistTournament(TournamentDTO tournament);
	
	public abstract List<TournamentDTO> listTournaments();
	
	public abstract TournamentDTO getTournamentByTournamentId(int tournamentId);
	
	public abstract void persistPlayer(PlayerDTO player);
	
	public abstract List<PlayerDTO> listPlayers();

}